var table = $('.group-times');
var expanded = $.map(table.find('tr.expanding.expanded'), function(elm) {
  return $(elm).attr('id');
});

// replace table content
$('.checkin-groups-table-wrapper').html('<%= escape_javascript render(partial: 'entries') %>')

// reopen folders
$.each(expanded, function(i, id) {
  $('tr.expanding#' + id).addClass('expanded');
  $('.for-folder-' + id.replace(/checkin_folder_/, '')).show();
});

// highlight row that moved
$('#<%= dom_id(@entry) %>').highlight();
